html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input {
	padding: 0;
	margin: 0;
	font: inherit;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, \\5fae\8f6f\96c5\9ed1, Arial,
		sans-serif;
	font-size: 100%;
	border: 0;
	/*vertical-align: baseline;*/
}
* {
	-webkit-overflow-scrolling: touch;
	/*解决IOS滑动不流畅*/
}
footer {
	background-color: #fff;
}
input {
	appearance: none;
	border-radius: 0;

	-webkit-appearance: none;
	-moz-appearance: none;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	/*//清除ios默认圆角*/
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
menu,
nav,
section {
	display: block;
}
html,
body {
	height: 100%;
}
body {
	height: 100%;
	line-height: 1;
	background-color: #fff;
	user-select: none;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	&.bbody {
		background-color: #000 !important;
	}
	&.bbody191 {
		background-color: #191b2e !important;
	}
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

a {
	text-decoration: none;
}

img {
	border: none;
	pointer-events: none;
}

.clear:after {
	content: ' ';
	clear: both;
	display: block;
}

input,
button {
	border: none;
	outline: none;
}

html,
body {
	width: 100%;
	height: 100%;
}
*::-webkit-scrollbar {
	/*隐藏滚轮*/
	display: none;
	width: 0;
	height: 0;
	color: transparent;
}
input {
	caret-color: #999;
}
@supports ((top: constant(safe-area-inset-top)) or (top: env(safe-area-inset-top))) {
	body {
		// padding-top: calc(constant(safe-area-inset-top)); //为导航栏+状态栏的高度 88px
		// padding-top: calc(env(safe-area-inset-top)); //为导航栏+状态栏的高度 88px
		// padding-left: constant(safe-area-inset-left); //如果未竖屏时为0
		// padding-left: env(safe-area-inset-left); //如果未竖屏时为0
		// padding-right: constant(safe-area-inset-right); //如果未竖屏时为0
		// padding-right: env(safe-area-inset-right); //如果未竖屏时为0
		// padding-bottom: calc(constant(safe-area-inset-bottom) + 34px); //为底下圆弧的高度 34px
		// padding-bottom: calc(env(safe-area-inset-bottom) + 34px); //为底下圆弧的高度 34px
		@include borderBox;
	}
}

// 去除Number上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}
input[type='number'] {
	-moz-appearance: textfield;
}

.scale-btn {
	// 缩放点击
	&:active {
		transform: scale(0.9, 0.9);
		transition: 0.3s;
	}
}
.color-btn {
	// 渐变点击
	&:active {
		background: #3877c0 !important;
		transition: 0.2s;
	}
}

.gpu-acc {
	perspective: 1000;
	// GPU加速 low版
	transform: translate3d(0, 0, 0);
	backface-visibility: hidden;

	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-webkit-perspective: 1000;
	-moz-perspective: 1000;
	-webkit-transform: translate3d(0, 0, 0);
	-moz-transform: translate3d(0, 0, 0);
	-o-transform: translate3d(0, 0, 0);
	// will-change: transform;
}

/* 以下根据具体业务  
优先编写好通用样式 
可节省大量时间
  命名尽量规范 */
.color-up {
	color: $mgreen !important;
}
.color-down {
	color: $orange !important;
}
.color-normal {
	color: $mtext;
}
.bg-up {
	background-color: $mgreen;
}
.bg-down {
	background-color: $orange;
}
.m-text {
	color: $mtext;
}
.sub-text {
	color: $subtext;
}
.tips-text {
	color: $tiptext;
}
.bold-text {
	font-weight: bold;
}
@for $i from 12 through 30 {
	.fsize_#{$i} {
		font-size: (1px * $i);
	}
}
.tips-box {
	min-width: 150px;
	height: 50px;
	background: #fff;
	box-shadow: 0px 0px 10px 0px rgba(71, 96, 231, 0.1);
	border-radius: 4px;
	padding: 15px 32px;
	@include flex(center);
	@include borderBox;
}
.confirm-box {
	width: 350px;
	background: #fff;
	box-shadow: 0px 0px 10px 0px rgba(71, 96, 231, 0.1);
	border-radius: 4px;
	@include borderBox;
	z-index: 2000;
}
.nor-btn {
	@include borderBox;
	background: $mgreen;
	border-radius: 2px;
	color: #fff;
	line-height: 20px;
	padding: 8px 22px;
	text-align: center;
	display: inline-block;
	&:hover,
	&:active {
		background: $orange;
	}
}
.a-btn {
	color: $mgreen;
	&:hover,
	&:active {
		color: $orange;
	}
}
.a-btn,
.nor-btn {
	cursor: pointer;
}
%icon-bg {
	background: no-repeat;
	background-size: (312px/2) (130px/2);
	@include square(20);
	overflow: hidden;
	margin-right: 10px;
	display: block;
	background-image: url(./icon/sprite.png);
}
.icon-tick-round {
	// 空心圆勾
	@extend %icon-bg;
	background-position: -0px -0.5px;
}
.icon-success-round {
	// 实心圆勾
	@extend %icon-bg;
	@include square(30);
	background-position: -88px -0px;
}
.icon-time {
	// 时钟
	@extend %icon-bg;
	@include square(24);
	background-position: -118px -0px;
}
.icon-time-small {
	// 时钟
	@extend %icon-bg;
	@include square(14);
	background-position: -142px -0px;
}
.icon-cancel-round {
	// 空心X 圆
	@extend %icon-bg;
	background-position: -20px -0.5px;
}
.icon-cancel-round-f {
	// 实心X灰色 圆
	@extend %icon-bg;
	background-position: -58px 0px;
	@include square(30);
}
.icon-cancel {
	// 不圆X
	@extend %icon-bg;
	background-position: -40px -0.5px;
	@include square(18);
}
.icon-bank {
	// 银联标志
	@extend %icon-bg;
	background-position: -0px -21.5px;
	@include square(40);
}
.mask {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	margin: auto;
	background: rgba(0, 0, 0, 0.3);
	@include flex(center);
}
.flex-box {
	@include flex(flex-start);
}

.align-text {
	text-align: justify;
	overflow: hidden;
	display: inline-block;
	&::after {
		display: inline-block;
		width: 100%;
		height: 0;
		content: ' ';
		top: 0;
	}
}

.flex {
	@include flex(flex-start);
}
